package com.digitalchina.lxnsy.activity.old;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.digitalchina.lxnsy.R;
import com.digitalchina.lxnsy.base.BaseActivity;
import com.digitalchina.lxnsy.toolkit.AppInfo;
import com.digitalchina.lxnsy.toolkit.GotoUtil;

import butterknife.Bind;
import butterknife.ButterKnife;

/**
 * ================================================
 * 项目名称：YLCloud
 * 类描述：
 * 包名：com.digitalchina.ylcloud.activity
 * 创建人：郑皓
 * 创建时间：2016/5/20 16:59
 * 修改备注：
 * ================================================
 */
public class AboutUsActivity extends BaseActivity {


    @Bind(R.id.imageView)
    ImageView imageView;//App LOGO
    @Bind(R.id.tv_about_us_version)
    TextView tvAboutUsVersion;


    @Override
    public void setLayout() {
        setContentLayout(R.layout.activity_about_us);
        setTitle("关于我们");
    }

    @Override
    public void initMember() {

        // App VersionName
        tvAboutUsVersion.setText(String.format("版本号: v%s", AppInfo.getVersionName(this)));

    }


    @Override
    public void addListener() {
        imageView.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                GotoUtil.gotoActivity(AboutUsActivity.this, GuideActivity.class);
            }
        });
    }


    @Override
    public void setHandler() {

    }

    @Override
    public void callBack(Object object) {

    }

    @Override
    public void rightOnClick() {

    }


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // TODO: add setContentView(...) invocation
        ButterKnife.bind(this);
    }

}
